package com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class FristController {

    @RequestMapping("/login")
    public String login(){ return "login"; }

    @RequestMapping("/")
    public String index(){
        return "main_page";
    }

    @RequestMapping("/register")
    public String register(){
        return "register";
    }

    @RequestMapping("/search")
    public String search(){ return "search_page"; }

    @RequestMapping("/upload")
    public String upload(){ return "upload_page"; }

    @RequestMapping("/mynode")
    public String mynode(){ return "mynode_page"; }
}
